$(function() {
	var goods_liststr = "";
	var goods_lists="";
	for(var i = 0; i < pinpai[0].lis.length; i++) {
		goods_liststr += '<li><a href="#" title='+pinpai[0].lis[i].title+' target="_blank"><img alt='+pinpai[0].lis[i].title+
		' title='+pinpai[0].lis[i].title+' src='+pinpai[0].lis[i].src+
		'><div class="txtBox"><span class="textdiv"></span><div class="txt1"><p class="p1">'+pinpai[0].lis[i].p1+
		'</p><p class="p2">'+pinpai[0].lis[i].p2+'</p></div><div class="txt2"><p class="p1">'+pinpai[0].lis[i].p1+
		'</p><p class="p2">'+pinpai[0].lis[i].p2+'</p></div></div></a></li>';
	}
	goods_lists+='<div class="brand"><div class="note">'+pinpai[0].title+
	'</div><div class="classes"><ul>'+goods_liststr+'</ul></div></div>';
	$(".goods_list").append(goods_lists);
	
	
	
	var toptitle = [];
	for(var i = 0; i < floors.length; i++) {
		var toptitlestr = '';
		for(var k = 0; k < floors[i].dq.lis.length; k++) {
			toptitlestr += '<li><a href="#" title=' + floors[i].dq.lis[k] + 'target="_blank">' + floors[i].dq.lis[k] + '</a></li>';
		}
		toptitle.push(toptitlestr);
	}
	var lefttitle = [];
	for(var i = 0; i < floors.length; i++) {
		var lefttitlestr = '';
		for(var k = 0; k < floors[i].dq.dqs.length; k++) {
			lefttitlestr += '<li><a href="#" title=' + floors[i].dq.dqs[k] + 'target="_blank">' + floors[i].dq.dqs[k] + '</a></li>';
		}
		lefttitle.push(lefttitlestr);
	}
	var center = [];
	for(var i = 0; i < floors.length; i++) {
		var centerstr = '';
		if(floors[i].dq.center_top.length == 3) {
			centerstr += '<div class="floor_top_ad1"><a href="#" title=' + floors[i].dq.center_top[0].title +
				' target="_blank"><img alt=' + floors[i].dq.center_top[0].title +
				' title=' + floors[i].dq.center_top[0].title + ' src=' + floors[i].dq.center_top[0].src +
				'></a></div><div class="floor_top_ad2"><a href="#" title=' + floors[i].dq.center_top[1].title +
				' target="_blank"><img alt=' + floors[i].dq.center_top[1].title +
				' title=' + floors[i].dq.center_top[1].title + ' src=' + floors[i].dq.center_top[1].src +
				'></a></div><div class="floor_top_ad2"><a href="#" title=' + floors[i].dq.center_top[2].title +
				' target="_blank"><img alt=' + floors[i].dq.center_top[2].title +
				' title=' + floors[i].dq.center_top[2].title + ' src=' + floors[i].dq.center_top[2].src + '></a></div>';
		} else {
			centerstr += '<div class="floor_top_ad2"><a href="#" title=' + floors[i].dq.center_top[0].title +
				' target="_blank"><img alt=' + floors[i].dq.center_top[0].title +
				' title=' + floors[i].dq.center_top[0].title + ' src=' + floors[i].dq.center_top[0].src +
				'><div class="floor_top_ad2"><a href="#" title=' + floors[i].dq.center_top[1].title +
				' target="_blank"><img alt=' + floors[i].dq.center_top[1].title +
				' title=' + floors[i].dq.center_top[1].title + ' src=' + floors[i].dq.center_top[1].src +
				'></a></div></a></div>';
		}
		center.push(centerstr);
	}
	var middle = [];
	for(var i = 0; i < floors.length; i++) {
		var middlestr = '';
		for(var k = 0; k < floors[i].dq.center_middle.length; k++) {
			middlestr += '<dl><dd class="pic"><a href="#" target="_blank" title=' + floors[i].dq.center_middle[k].title +
				'><img src=' + floors[i].dq.center_middle[k].src + ' alt=' + floors[i].dq.center_middle[k].title +
				' height="115" width="115"></a></dd><dt><a href="#" target="_blank" title=' + floors[i].dq.center_middle[k].title +
				' >' + floors[i].dq.center_middle[k].title + ' </a></dt><dd class="price"><strong>' + floors[i].dq.center_middle[k].price +
				' </strong><em>参考价：</em><span>' + floors[i].dq.center_middle[k].refprice + ' </span></dd></dl>';
		}
		middle.push(middlestr);
	}
	var bottom = [];
	for(var i = 0; i < floors.length; i++) {
		var bottomstr = '';
		for(var k = 0; k < floors[i].dq.brand.length; k++) {
			bottomstr += '<li><a href="#" title=' + floors[i].dq.brand[k].title +
				' target="_blank"><img alt=' + floors[i].dq.brand[k].title +
				' title=' + floors[i].dq.brand[k].title + ' src=' + floors[i].dq.brand[k].src +
				' height="32" width="80"></a></li>';
		}
		bottom.push(bottomstr);
	}
	var right = [];
	for(var i = 0; i < floors.length; i++) {
		var rightstr = '';
		for(var k = 0; k < floors[i].dq.floor_con.length; k++) {
			rightstr += '<dl><dt><a href="#" target="_blank" title=' + floors[i].dq.floor_con[k].title +
				'>' + floors[i].dq.floor_con[k].title + '</a></dt><dd class="pic"><a href="#" target="_blank" title=' + floors[i].dq.floor_con[k].title +
				'><img src=' + floors[i].dq.floor_con[k].src + ' alt=' + floors[i].dq.floor_con[k].title +
				' height="60" width="60"></a></dd><dd class="price"><strong>' + floors[i].dq.floor_con[k].price +
				'</strong></dd></dl>';
		}
		right.push(rightstr);
	}
	var floor = "";
	for(var i = 0; i < floors.length; i++) {
		floor += '<div class="floor"><div class="titles"><span class="floor_num">' + floors[i].dq.floor_num +
			'</span><h2>' + floors[i].dq.h2 + '</h2><a href="#" title=' + floors[i].dq.more +
			' target="_blank" class="more">' + floors[i].dq.more +
			'</a><ul>' + toptitle[i] + '</ul></div><div class="floor_left"><ul>' + lefttitle[i] +
			'</ul><div class="floor_left_ad"><a href="#" title=' + floors[i].dq.left_ad +
			' target="_blank"><img alt=' + floors[i].dq.left_ad +
			' title=' + floors[i].dq.left_ad + ' src=' + floors[i].dq.left_img +
			' height="240" width="198"></a></div></div><div class="floor_center"><div class="floor_top">' + center[i] +
			'</div><div class="floor_middle">' + middle[i] + '</div><div class="floor_bottom"><ul>' + bottom[i] + '</ul></div></div><div class="floor_right"><div class="floor_tab"><ul><li class="cur">' + floors[i].dq.right_title +
			'</li></ul></div><div class="floor_con">' + right[i] + '</div></div></div>';
	}
	$(".floors").append(floor);
		
	
	var listarr=[];
	for(var i = 0; i < bottomlist.length; i++) {
		var liststr="";
		for(var k = 0; k < bottomlist[i].list.length; k++){
			liststr+='<dd class="links"><span><a href="#" title='+bottomlist[i].list[k][0]+
			' target="_blank">'+bottomlist[i].list[k][0]+
			'</a></span><span><a href="#" title='+bottomlist[i].list[k][1]+
			' target="_blank" >'+bottomlist[i].list[k][1]+'</a></span></dd>';
		}
		listarr.push(liststr);
	}
	var list="";
	for(var i = 0; i < bottomlist.length; i++) {
		list+='<li><dl><dt><a href="#" title='+bottomlist[i].li_title+
		' target="_blank">'+bottomlist[i].li_title+
		'</a></dt><dd class="pic"><a href="#" title='+bottomlist[i].li_title+
		' target="_blank"><img alt='+bottomlist[i].li_title+
		' title='+bottomlist[i].li_title+
		' src='+bottomlist[i].src+
		' height="45" width="45"></a></dd>'+listarr[i]+'</dl></li>';
	}
	$(".bottomlist").append(list);	
});
